<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<probiz:pageHeading entityName="${stockNotify.stockNotifyName}" entityHeadingKey="stockNotifyDetail.heading" />
<content tag="buttons">
	<probiz:iconBtn type="sendMail" onclick="fnDoAction(null,"sendMail");" />
    <c:if test="${stockNotify.stockNotifyId!=null}">
		<probiz:iconBtn btnType="delete" onclick="return fnDoDelete(this);" />
	</c:if>
	<probiz:iconBtn btnType="back" onclick="return fnDoCancelForm(this);" />
</content>
	<form:form method="post" cssClass="mainForm" id="stockNotify" commandName="stockNotify"	action="${ctxPath}/product/stockNotify.html" onsubmit="return validateStockNotify(this);">
		<input type="hidden" name="stockNotifyId" value="${stockNotify.stockNotifyId}"/> 
		<table class="com_modi_table" cellSpacing=0 cellPadding=0 width="100%" border=0>
			<tr>
				<th><StoreAdmin:label key="stockNotify.customerName" /></th>
				<td>${stockNotify.customerName}</td>
			</tr>
			<tr>
				<th><StoreAdmin:label key="stockNotify.productId" /></th>
				<td>${stockNotify.product.productName}</td>
			</tr>
			<tr>
				<th><StoreAdmin:label key="stockNotify.email" /></th>
				<td>${stockNotify.email}</td>
			</tr>
			<tr>
				<th><StoreAdmin:label key="stockNotify.phone" /></th>
				<td>${stockNotify.phone}</td>
			</tr>
			<tr>
				<th><StoreAdmin:label key="stockNotify.memo" /></th>
				<td>${stockNotify.memo}</td>
			</tr>
			<tr>
				<th><StoreAdmin:label key="stockNotify.createTime" /></th>
				<td><fmt:formatDate value="${stockNotify.createTime}" pattern="yyyy-MM-dd hh:mm"/></td>
			</tr>
			<c:if test="${not empty stockNotify.informTime}">
				<tr>
					<th><StoreAdmin:label key="stockNotify.informTime" /></th>
					<td><fmt:formatDate value="${stockNotify.informTime}" pattern="yyyy-MM-dd hh:mm"/></td>
				</tr>
			</c:if>
			<tr>
				<th><StoreAdmin:label key="stockNotify.emailInformStatus" /></th>
				<td><fmt:message key="stockNotify.emailInformStatus_${stockNotify.emailInformStatus}"/></td>
			</tr>
			
	 	
  	</table>
</form:form>

<v:javascript formName="stockNotify" staticJavascript="false" />
<script type="text/javascript" src="${ctxPath}/scripts/probiz/product/stockNotifyForm.js?rs=${appConfig.rs}"></script>
<script type="text/javascript">
</script>
